package cn.kgc.service;

import cn.kgc.mapper.JobpostingMapper;
import cn.kgc.pojo.Jobposting;
import cn.kgc.util.Page;
import com.alibaba.dubbo.config.annotation.Service;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;


/**
* 描述： 服务实现层接口
* @author 
* @date 2018/03/05
*/
@Service
public class JobpostingServiceImpl implements JobpostingService{
	@Resource
	private JobpostingMapper jobpostingMapper;
 	
 	/**
    * 描述：根据Id获取Jobposting对象
    * @param id
    */
    public Jobposting findById(Serializable id){
    	return jobpostingMapper.findById(id);
    }

    @Override
    public List<Jobposting> findById(Integer resumeId) {
        return null;
    }

    /**
    * 描述：获取所有的Jobposting对象
    */
    public List<Jobposting> findAll(){
    	return jobpostingMapper.findAll();
    }

	/**
    * 描述：新增保存Jobposting对象
    */
    public int save(Jobposting jobposting){
    	return  jobpostingMapper.save(jobposting);
    }

	/**
    * 描述：根据Id删除Jobposting对象
    * @param id
    */
    public int delete(Serializable id){
    	return  jobpostingMapper.delete(id);
    }
	
	/**
    * 描述：更新Jobposting对象
    */
    public int update(Jobposting jobposting){
    	return  jobpostingMapper.update(jobposting);
    }
    
    /**
     * 根据不确定的条件，动态查询
     */
    public List<Jobposting> query(Object params){
    	return  jobpostingMapper.query(params);
    }
    
    /**
     * 根据不确定的条件，动态分页查询
     */
    public Page queryByPage(Object params, Page page){

    	return page;
    	
    }

    @Override
    public Integer getCount() {
        return null;
    }

    @Override
    public List<Jobposting> getJbposting(Integer userId) {
        return null;
    }

    @Override
    public List<Jobposting> getHasJbposting(Integer userId) {
        return null;
    }

    @Override
    public List<Jobposting> getNoJbposting(Integer userId) {
        return null;
    }

    @Override
    public List<Jobposting> getJbpostingXiajia(Integer userId) {
        return null;
    }

    @Override
    public Integer updateJobposting(Integer resumeId, Integer state) {
        return null;
    }

    @Override
	public List<Jobposting> selectJobposting(Integer positionId, String workCity, String monthly) {
		return jobpostingMapper.selectJobposting(positionId,workCity,monthly);
	}

}
